﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class DeliveryRobot : Robot
    {
        public int hours { get; set; }

        public DeliveryRobot()
        { }
        public DeliveryRobot( string Name,int hours)
            :base(Name)
        {
            this.hours = hours;
        }
        public override void Working()

        {
            Console.WriteLine("机器人类型：{0}，工作时长：{1}",this.Name,this.hours);
        }

       }
}
    
